package com.xiangyang.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xiangyang.entity.User;
import com.xiangyang.entity.dto.Result;
import com.xiangyang.entity.vo.ChagePwdInfo;
import com.xiangyang.entity.vo.ForgetPwdInfo;
import com.xiangyang.entity.vo.RegisterInfo;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

public interface IUserService extends IService<User> {
    Result login(String username, String password);
    Result register(RegisterInfo user);
    Result logout(HttpServletRequest request, HttpServletResponse response);
    Result forgetPassword(ForgetPwdInfo forgetPwdInfo);
    Result getCode(String phone);
    Result changePwd(ChagePwdInfo chagePwdInfo);
}
